/********************************************************************************
 *      Copyright:  (C) 2024 linuxer<linuxer@email.com>
 *                  All rights reserved.
 *
 *       Filename:  client.h
 *    Description:  This file 
 *
 *        Version:  1.0.0(14/03/24)
 *         Author:  linuxer <linuxer@email.com>
 *      ChangeLog:  1, Release initial version on "14/03/24 14:35:53"
 *                 
 ********************************************************************************/
#ifndef CLIENT_H
#define CLIENT_H
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
#include <unistd.h>
#include<sys/stat.h>
#include<fcntl.h>
#include<dirent.h>
#include<netdb.h>
#include <string.h>
#include <errno.h>
#include <ctype.h>
#include <time.h>
#include <pthread.h>
#include <getopt.h>
#include <libgen.h>
#include <sys/types.h> 
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/epoll.h>
#include <sys/resource.h>
#include "database.h"
#include "temperature.h"
#include "getTime.h"
#include "logger.h"
#define MAX_EVENTS 512
#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
#define SERIAL "bs182021111"


typedef struct ReportTemp {
	char 			temperature[32];
	char			serial[32];
	char			time[32];
}ReportTemp;



//创建套接字
int m_connect(int *sockfd,char *servip,int port);

//打印用法
void print_usage(char *progname);

//检测连接是否已成
int is_socket_exceptional(int* sockfd);
#endif
